package cn.micro.system.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 产品版本信息表
 * </p>
 *
 * @author wr
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AssetDimProductVersion implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 产品版本主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 版本号
     */
    private String versionCode;

    /**
     * 远程仓库地址
     */
    private String remoteWareUrl;

    /**
     * 0：正常,1：已废弃
     */
    private Integer status;

    /**
     * 产品ID
     */
    private Long productId;

    /**
     * 发布日期（yyyy-MM-dd）
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate pubTime;

    /**
     * 发布者
     */
    private Long pubBy;

    /**
     * 版本描述
     */
    private String versionDesc;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private List<Long> fileIds;

    public static final String ID = "id";

    public static final String VERSION_CODE = "version_code";

    public static final String REMOTE_WARE_URL = "remote_ware_url";

    public static final String STATUS = "status";

    public static final String PRODUCT_ID = "product_id";

    public static final String PUB_TIME = "pub_time";

    public static final String PUB_BY = "pub_by";

    public static final String VERSION_DESC = "version_desc";

    public static final String CREATE_TIME = "create_time";

}
